import { createBrowserRouter } from 'react-router'
import Layout from '@/pages/layout'
import Home from '@/pages/Home'
import { lazy } from 'react'
const router = createBrowserRouter([
  {
    Component: Layout,
    children: [
      { index: true, Component: Home },
      {
        path: '/dashboard',
        Component: lazy(() => import('@/pages/Dashboard'))
        // Component: About
      }
    ]
  }
])

export default router
